<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class Display extends Model{
	
	function Display()
	{
		parent::Model();
		$this->load->helper('form');
		//加载系统全局变量
		$this->data['css'] = $this->config->item('css');
		$this->data['images'] = $this->config->item('images');
		$this->data['base'] = $this->config->item('base_url');
		$this->base = $this->config->item('base_url');
		$this->data['myrobots'] = '<meta name="robots" content="noindex,nofollow" />';
		$this->data['site_title'] = "Vikilex.com";	
	}
	
	function dashboard($mydata){
		$this->load->view('base/header_view',$mydata);
		$this->load->view('base/profile_view');
		$this->load->view('base/favorite_view');
		$this->load->view('base/menu_view');		
		$this->load->view('base/help_view');		
	}
	
	function content($view,$mydata){
		$this->load->view("derived/$view",$mydata);		
	}
	
}